package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Permission;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.util.PageResult;

import java.util.List;

public interface IPermissionService {
    void save(Permission entity);

    void delete(Long id);

    void update(Permission entity);

    Permission get(Long id);

    List<Permission> list();

    PageResult query(QueryObject qo);

    void load();

    List<Permission> queryPermissionByRoleId(Long roleId);
}
